package com.woniuxy.custom.controller;


import com.woniuxy.comments.entity.Custom;
import com.woniuxy.comments.util.ResponseResult;
import com.woniuxy.custom.service.CustomService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author Liu Tao
 * @Date 2023 05 15 19 12
 **/

@RestController
@RequestMapping("/custom")
public class CustomController {
    @Resource
    private CustomService customService;

    @GetMapping("/findAll")
    public ResponseResult<List<Custom>> findAll(){
        return customService.findAll();
    }

}
